package com.youku.component.variable;

import com.youku.component.CaseStep;
import com.youku.component.TestCase;
import com.youku.expression.Expression;

/**
 * 普通局部变量
 * 
 * @author loda
 *
 */
public class LocalNormalVariable extends LocalVariable {

	public LocalNormalVariable(String name, String expressionString, TestCase testCase) {
		super(name, expressionString, testCase);
	}

	public LocalNormalVariable() {
	}

	@Override
	public CaseStep cloneStep() {
		LocalNormalVariable variable = new LocalNormalVariable();
		variable.name = name;
		variable.attribute = attribute;
		variable.expression = new Expression(expression.getPosition(), expression.getExpressionString());
		return variable;
	}

}
